Skip to content

Migrate to voice_mute over voice_ban#2052

Merged
ChrisLovering merged 4 commits into
mainfrom
voicemute
Jan 27, 2022
Merged

Migrate to voice_mute over voice_ban#2052
ChrisLovering merged 4 commits into
mainfrom
voicemute

Conversation

@ChrisLovering
Copy link
Copy Markdown
Member

@ChrisLovering ChrisLovering commented Jan 21, 2022

Works towards #1849

This PR changes everything related to voice_bans to instead use voice_mute so that the bot is in line with the new site API.
As such, this should be merged at the same time as python-discord/site#608.
I've done it this way so that the site PR doesn't need to be held up until the whole voice_ban implementation is completed.

This also adds stub commands for voice_ban , as they are useful for moderators during the change over from voice_ban to voice_mute, to remind them that the command has been renamed.

Reviewing may be easier by reviewing individual commits, rather than the full diff.

This commit changes all of the back-end so that it is in line with the new site API (see this PR python-discord/site#608).

This comes with no changes to commands, or functions definitions.
This changes all functions that reference voice_ban to voice_mute instead, which comes with breaking front-end changes.

These front end changes are desirable, so that moderators get used to use voice_mute now, rather than voice_ban, in preparation for when we roll out real voice_bans.
These stub commands are useful for moderators during the change over from voice_ban to voice_mute, to remind moderators that the command has been changed now.
Copy link
Copy Markdown
Contributor

@jchristgit jchristgit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Chris. This is great!

@jchristgit jchristgit added the review: do not merge The PR can be reviewed but cannot be merged now label Jan 26, 2022
@ChrisLovering ChrisLovering removed the review: do not merge The PR can be reviewed but cannot be merged now label Jan 27, 2022
@ChrisLovering ChrisLovering merged commit 5f4b557 into main Jan 27, 2022
@ChrisLovering ChrisLovering deleted the voicemute branch January 27, 2022 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants